import { request } from 'umi';

export async function getNewsList(params) {
  return request('/api/pom/ListedCompanyFinancialNewsList', {
    method: 'GET',
    params,
  });
}

export async function getCompanyDetail(params) {
  return request(`/api/pom/ListedCompany`, {
    method: 'GET',
    params,
  });
}
export async function getListedCompanyRiskIndexPrediction(params) {
  console.log('getListCompanyRiskIndex>>>>params', params)
  return request(`/api/pom/ListedCompanyRiskIndexPrediction`, {
    method: 'GET',
    params,
  });
}
export async function getListedCompanyDetail(stockCode) {
  return request(`/api/pom/ListedCompany/${stockCode}`, {
    method: 'GET',
  });
}
export async function getListedCompany(params) {
  console.log("getListedCompnay>>>>>", params)
  return request(`/api/pom/ListedCompany`, {
    method: 'GET',
    params,
  });
}
export async function getListedStockInfo(params) {
  return request('/api/pom/ListedCompanyStockInfo', {
    method: 'GET',
    params,
  });
}


export async function getCompanyStockInfo(params) {
  return request('/juhe/finance/stock/hs', {
    method: 'GET',
    params,
  });
}
